package csvreader;

import junit.framework.TestCase;
import csvreader.Element;

public class testElement extends TestCase {

	String str1= "1";
	String str2 = "\"1, Blossom Street Restaurant & Bar\"";
	
	public testElement(){
	Element elm = new Element();
	elm.addData(str1);
	String obtained = elm.getData(0);
    System.out.println(obtained);
    assertTrue(str1.contains(obtained));
    
    elm.addData(str2);
	String obtained2 = elm.getData(1);
    System.out.println(obtained2);
    assertTrue(str2.contains(obtained2));
  }
}
